package online.longzipeng.cinemasys.vo.role;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;

/**
 * @author lzp
 * @date 2021/4/10 12:19
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "角色资源保存对象",description = "请求参数类")
public class RoleResourcesSaveVO {

    /**
     * 角色id
     */
    @ApiModelProperty(value = "角色id",example = "1",required = true)
    @Min(value = 0,message = "角色id只能是大于0的数字！！")
    private Long roleId;

    /**
     * 资源id
     */
    @ApiModelProperty(value = "资源id",example = "2",required = true)
    @Min(value = 0,message = "资源id只能是大于0的数字！！")
    private Long resourcesId;

}
